<?php
//khoi dong su kien
session_start();
//kiem tra quyen admin
include("kiemtraquyen.php");
//lay userid
$id=$_GET["id"];
if(isset($id))
{
	//ket noi voi co so du lieu
	include("connect.php");
	//cau lenh sql lay nguoi dung tu csdl
	$sql_nguoidung="delete from user where USERID=$id";
	$query_nguoidung=mysql_query($sql_nguoidung);
	//tro ve trang ql
	header("location:qlnguoidung.php");
}
else
{
	header("location:qlnguoidung.php");
}
?>